import React, { JSX } from 'react';
import { Navigate, Route, Routes } from 'react-router-dom';
import MainFramework from '../pages/MainFramework';
import Login from '../pages/Login';
import Auth from '../pages/Auth';

function NulRoutes(): JSX.Element {
  return (
    <Routes>
      <Route path='*' element={<Navigate replace to='/login' />} />
      <Route path='/main' element={<Auth />}>
        <Route path=':id' element={<MainFramework />} />
      </Route>
      <Route path='/login' element={<Login />} />
      <Route path='/test/'>

      </Route>
    </Routes>
  );
}

export default NulRoutes;